package app.injection
{
	import app.model.proxys.LinkBarProxy;
	import app.model.proxys.LocaleProxy;
	import app.model.proxys.PanelProxy;
	import app.model.proxys.SystemCreationProxy;
	import app.model.proxys.SystemProxy;
	import app.model.proxys.TCardProxy;
	
	import org.puremvc.as3.multicore.patterns.observer.Notifier;
	
	import pollen.io.settings.proxies.SettingsAccessProxy;
	
	

	public class ModelInjector extends Notifier
	{
		
		public function inject(  ):void{
			var settings:SettingsAccessProxy;
			settings = SettingsAccessProxy( facade.retrieveProxy( SettingsAccessProxy.NAME ) );
			facade.registerProxy( new LocaleProxy( settings.getFile( "en_uk" ) ) );	
			facade.registerProxy( new TCardProxy( settings.getFile( "tcards" ) ) );	
			facade.registerProxy( new PanelProxy( settings.getFile( "panels" ) ) );	
			facade.registerProxy( new LinkBarProxy( settings.getFile( "linkbars" ) ) );	
			facade.registerProxy( new SystemProxy( settings.getFile( "systems" ) ) );	
			facade.registerProxy( new SystemCreationProxy( ) );	
		}
		
		
	}
}